package com.smartbus.bus.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.smartbus.common.annotation.Excel;
import com.smartbus.common.core.domain.BaseEntity;

/**
 * 系统配置参数，存储各种可配置的系统参数和业务规则对象 system_settings
 * 
 * @author ruoyi
 * @date 2025-09-24
 */
public class SystemSettings extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID，自增 */
    private Long id;

    /** 配置项键名，如default_language */
    @Excel(name = "配置项键名，如default_language")
    private String settingKey;

    /** 配置项值 */
    @Excel(name = "配置项值")
    private String settingValue;

    /** 配置值类型：字符串/数字/布尔/JSON */
    @Excel(name = "配置值类型：字符串/数字/布尔/JSON")
    private String settingType;

    /** 配置项说明 */
    @Excel(name = "配置项说明")
    private String description;

    /** 配置是否生效，1-生效 0-停用 */
    @Excel(name = "配置是否生效，1-生效 0-停用")
    private Integer isActive;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 最后更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setSettingKey(String settingKey) 
    {
        this.settingKey = settingKey;
    }

    public String getSettingKey() 
    {
        return settingKey;
    }

    public void setSettingValue(String settingValue) 
    {
        this.settingValue = settingValue;
    }

    public String getSettingValue() 
    {
        return settingValue;
    }

    public void setSettingType(String settingType) 
    {
        this.settingType = settingType;
    }

    public String getSettingType() 
    {
        return settingType;
    }

    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }

    public void setIsActive(Integer isActive) 
    {
        this.isActive = isActive;
    }

    public Integer getIsActive() 
    {
        return isActive;
    }

    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("settingKey", getSettingKey())
            .append("settingValue", getSettingValue())
            .append("settingType", getSettingType())
            .append("description", getDescription())
            .append("isActive", getIsActive())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
